﻿using UnityEngine;
using System.Collections;

public class EndingButton : MonoBehaviour {

	public MainService main;
	public PlayerStorage player;
	public ChangeLevel LevelLoader;

	public void LevelCheck()
	{
		if (main.trueDeath == true)
		{
			player.Reset();
			LevelLoader.LoadLevel("IntroScreen");
		}
		
		if (main.trueDeath == false)
		{
			
			LevelLoader.LoadLevel("SettlementScreen");
		}
		
	}
}
